package main

import (
	"fmt"
	"io/ioutil"
	"net/http"
)

func main() {

	url := "http://localhost:8088/eps/factory/order/info?orderId=2176"
	method := "GET"

	client := &http.Client{}
	req, err := http.NewRequest(method, url, nil)

	if err != nil {
		fmt.Println(err)
		return
	}
	req.Header.Add("X-Sid", "m1COnsUSnB0=")
	req.Header.Add("X-Time", "1713229283545")
	req.Header.Add("X-Token", "021268kwbvIgnRVWBWd2p8i7iZ+GZLsFI6dVARGWsYGdqHTlDcaSnoRgoAipvHtD/ixoZtYaSAqz+ldZEMj0PDtC7KgXVEN0ro0k8M")
	req.Header.Add("X-Uid", "1069")
	req.Header.Add("User-Agent", "Apifox/1.0.0 (https://apifox.com)")

	res, err := client.Do(req)
	if err != nil {
		fmt.Println(err)
		return
	}
	defer res.Body.Close()

	body, err := ioutil.ReadAll(res.Body)
	if err != nil {
		fmt.Println(err)
		return
	}
	fmt.Println(string(body))
}
